import request from './services/request'
export default {
  getDict(data) {
    return request({
      url: 'user/getDict',
      method: 'post',
      data
    })
  },
  getBestSell() {
    return request({
      url: 'goods/getBestSell',
      method: 'GET'
    })
  },
  queryGoods(goodsName) {
    return request({
      url: 'goods/queryGoods',
      method: 'GET',
      params: { goodsName }
    })
  },
  updateUser(data) {
    return request({
      url: 'user/updateUser',
      method: 'post',
      data
    })
  },
  selectOne(id) {
    return request({
      url: `user/selectOne?id=${id}`,
      method: 'GET'
    })
  },
  noticeSelectOne() {
    return request({
      url: `shopNotice//selectOne`,
      method: 'GET'
    })
  }
}
